<?php
	session_start();
	if (!isset($_SESSION['kiemtradangnhapanan']) || $_SESSION['kiemtradangnhapanan']!=1) {
		header('location: ../../index.php');
		die;
	}
		
	$table = $_GET["table"];
	$id = $_GET["id"];
	$loai_move = $_GET["loai_move"];
	
	if ($table!="" && $id!="" && $loai_move!="") {
		settype($id, "int");
	
		require("../librarys/funs/classdb.php");
		$db = new db;
		$db->move_record_db($table, $id, $loai_move);
	}
?>